FindTransientRepeat
FindTransientRepeat[list,n] returns a pair of lists {transient,repeat} where the elements of repeat occur successively at least n times after the elements of the transient part of list.
FindTransientRepeat[string,n] returns a pair of strings {transient,repeat}.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.